<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title></title>
	<link rel="stylesheet" href="/css/main.css">
	<link rel="stylesheet" href="/css/font-awesome/css/font-awesome.css">
</head>
<body>
<div class="box">
	<h3>添加修缮记录信息</h3>
	<form action="/repair/add" method="post">
	<table class="form-table">
		<tr>
				<td>房屋地址</td>
				<td colspan="3" class="control">
					<select name="flat_id">
						<c:forEach items="${flats}" var="house">
							<option value="${house.h_id}">${house.h_address}</option>
						</c:forEach>
					</select>
				</td>
			</tr>
			<tr>
				<td>修缮说明</td>
				<td colspan="3" class="control">
					<input type="text" style="width:250px;" name="fr_explain" placeholder="修缮说明" value="">
				</td>
			</tr>
			<tr>
				<td>修缮时间</td>
				<td colspan="3" class="control">
					<input type="date" style="width:250px;" name="fr_time"  value="">
				</td>
			</tr>
			<tr>
				<td>修缮结果</td>
				<td colspan="3" class="control">
					<select name="fr_result"  style="width:250px;">
						<option value="未修好">未修好</option>
						<option value="修好了">修好了</option>
					</select>
				</td>
			</tr>
			<tr>
				<td>备注说明</td>
				<td colspan="3" class="control">
					<textarea rows="1" style="height:250px;" cols="0" name="fr_remark" placeholder="备注说明"></textarea>
				</td>
			</tr>
			<tr>
				<td>修缮人员</td>
				<td colspan="3" class="control">
				<select name="lo_id"  style="width:250px;">
					<c:forEach items="${logs }" var="log">
						<option value="${log.lo_id}">${log.lo_name}</option>
					</c:forEach>
				</select>
				</td>
			</tr>
	</table>
	<div class="buttons">
		<input class="btn btn-primary va-bottom" type="submit" value="保存">&nbsp;&nbsp;
		<a class="btn btn-default" href="javascript:history.go(-1)">返回</a>
	</div>
	</form>
</div>
</body>
</html>